-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: Prometheus from control plane #87
Conversation
Signed-off-by: Zander Franks <[email protected]>
Signed-off-by: Zander Franks <[email protected]>
Signed-off-by: Zander Franks <[email protected]>
I think we may want the option to connect to an existing Prometheus container so the control plane can be run in a container without needing docker in docker mounts |
That's fine, but the control plane needs to be able to write to the Prometheus config file wherever the Prometheus is, so currently having it in Docker only is the most feasible |
https://prometheus.io/docs/guides/file-sd/
scrape_configs:
- job_name: 'node'
file_sd_configs:
- files:
- 'targets.json' allows for [
{
"labels": {
"job": "node"
},
"targets": [
"localhost:9100"
]
}
] |
this looks more like what we want https://github.com/prometheus/pushgateway |
I think we would have to modify snarkOS to make this work since they use a scrape exporter by default. The metrics exporter they use does support push gateways though |
agent can scrape the node locally (with env + own node id context), then push it to a desired service |
Closing as we've decided to not make the control plane spin up its own Prometheus instance and instead let agents optionally use push gateway to a Prometheus server specified by the control plane. |
Targets: